Automatic gain control

ABSTRACT

The invention relates to gain control for an amplifier for received radio signals by means of an automatic gain control signal (c). A down converter ( 103 ) produces signal components (I; Q) from received radio frequency signals (RF). The signal components (I; Q) are amplified in a respective amplifier ( 104; 105 ), low pass filtered ( 106; 107 ) and further amplified ( 108; 109 ). Then, the resulting signal components (I P -LP; Q −LP ) are digitised in A/D-converters ( 110; 111  ) for further processing in a digital signal processor ( 112 ). The resulting signal components (I P-LP ; Q P-LP ) are also fed to a respective signal level detector ( 113; 114 ) whose output signals ([I]; [Q]) are combined ( 115 ) into a combined signal (V Σ ). This signal (V Σ ) is forwarded to a gain control unti ( 116 ), which produces the automatic gain control signal (c). The automatic gain control signal (c) controls the gain of the amplifiers ( 104; 105 ) such that the resulting signal components (I P-LP ; Q P-LP ) are maintained at signal level ([I]; [Q]) less than a predetermined limit level being adapted to the A/D converters ( 110; 111 ). A derivation unit ( 117 ) generates a time derivative parameter (V Σ ) sends a pulse signal (R) to the digital signal processor ( 112 ) if the time derivative parameter (V Σ ) on basis of the combined signal (V Σ ) . A ramp generator ( 118 ) receiving the time derivative parameter (V Σ ) sends a pulse signal (R) to the digital signal processor ( 112 ) if the time derivative parameter (V Σ ) exceeds a threshold value (V T ). The digital signal processor ( 112 ) produces a time constant value (set-D), which forms a basis for a time constant (T) of the automatic gain control signal (c). The digital signal processor ( 112 ) also influences the time constant (T) such that it obtains a relatively small value if the time derivative parameter (V Σ ) has a comparatively high value, and vice versa.

THE BACKGROUND OF THE INVENTION AND PRIOR ART

[0001] The present invention relates generally to automatic gain control in a radio frequency receiver. More particularly the invention relates to a method of controlling gain of an amplifier for received radio signals in a radio receiver, according to the preamble of claim 1. The invention also relates to a computer program, for instance in the form of a digital processor algorithm, according to claim 12, a computer readable medium according to claim 13 and an arrangement according to the preamble of claim 14.

[0002] A problem that arises in most radio communications receivers concerns the wide variation in power level of the radio signals received at the antenna. This variation is due to a variety of causes. For example, the distance between the transmitter and the receiver can vary considerably. Different transmitters may also utilise different power levels. Since, disregarding the influence of any screening objects, the received signal power decreases as the square of the distance to the transmitter, wide variations in received power level are likely to arise in many situations. Furthermore, these variations may occur very rapidly due to changes in the radio conditions. Movements of the receiver station and/or transmitter station or repositioning of objects between the stations are typical situations in which the conditions for the radio channel can change dramatically.

[0003] In radio design it is therefore common practice to include an automatic gain control (AGC) circuit in the receiver. The AGC circuit utilises feedback to maintain a fixed (or at least as stable as possible) signal power level within the receiver even though the signal level at the antenna varies widely. The AGC is achieved by using an amplifier whose gain can be controlled by an external signal, e.g. a voltage or a current.

[0004] In analogue receivers it is known to incorporate AGC circuits that operate on a down converted intermediate frequency (IF) signal, i.e. a signal component, which has been frequency transformed down from a received radio frequency (RF) signal and which is to be further frequency transformed down in a following frequency down conversion step.

[0005] Receivers in which the radio signal is digitally processed, in most cases after frequency down conversion, usually perform the AGC operation by digitally assisted processing. Thus, the AGC loop implies both analogue to digital conversion and digital to analogue conversion. For many of today's applications this gives a satisfying compensation for the power level variations in the received radio signals.

[0006] However, besides capable A/D- and D/A-converters, digital AGC also requires an amount of processing power, which in turn is correlated with power consumption and costs. For large signal bandwidths this effect becomes especially pronounced. Moreover, a large bandwidth places relatively demanding requirements on the A/D- and D/A-converters, particularly if a high digital resolution is necessary.

[0007] In a radio communication system for so-called bursty communication, for instance in the form of data packets, short pieces of information are passed between transmitter stations and receiver stations at irregular and generally unpredictable time instances. A particular station can, in most such systems, act both as a transmitter station and as a receiver station. With some exceptions, this means that every station in the system is a potential receiver of a radio message at any time. The station must therefore be capable of tuning its AGC circuit to received radio signals very rapidly.

[0008] The IEEE: 802.11a, 802.11b and ETSI: Hiperlan/2 constitute specific examples of wireless LAN protocols where extremely quick and accurate AGC-tuning is demanded. (IEEE=The Institute of Electrical and Electronics Engineers, ETSI=The European Telecommunications Standards Institute, LAN=Local Area Network, Hiperlan=High performance radio local area network). 802.11b specifies packet data exchange at speeds up to 11 Mbps / channel (under direct sequence modulation at 2.4 GHz) and Hiperlan/2 makes possible wireless access to the Internet and real time video services at speeds of 54 Mbps (at 5 GHz). In order to meet the hardest requirements of these standards a radio receiver must be capable of calibrating its receiver circuitry to the power level of received radio signals within 10 μs from start of transmission. This means that the AGC function must control the receiver amplifier gain to a suitable level within 10 μs or less.

[0009] However, it is both technically complicated and expensive to accomplish an AGC function involving digital signal level detection with sufficient accuracy and within such short time limits by utilising today's A/D converters, D/A converters and digital signal processors.

SUMMARY OF THE INVENTION

[0010] It is therefore an object of the present invention to solve the problems above and thus provide an improved solution for controlling the gain of an analogue variable gain amplifier in a radio receiver, which is quick and accurate enough to meet the requirements of the modern packet data protocols.

[0011] According to one aspect of the invention the object is achieved by a method for controlling gain of an amplifier for received radio signals in a radio receiver as initially described, which is characterised by varying a time constant of an automatic gain control signal in response to a time derivative parameter of the at least one down converted signal. The time constant is at least varied such that the automatic gain control signal is adapted to a power variation rate of the received radio frequency signals. The time constant may, of course, also be varied on basis of arbitrary additional parameters depending on, for instance, the protocol and frame structure according to which the particular receiver operates.

[0012] According to another aspect of the invention these objects are achieved by a computer program directly loadable into the internal memory of a digital computer, comprising software for controlling the method described in the above paragraph when said program is run on a computer.

[0013] According to yet another aspect of the invention these objects are achieved by a computer readable medium, having a program recorded thereon, where the program is to make a computer perform the method described in the penultimate paragraph above.

[0014] According to an additional aspect of the invention the object is achieved by an arrangement for controlling gain of an amplifier for received radio signals in a radio receiver as initially described, which is characterised in that a gain control signal generator is adapted for varying a time constant of the automatic gain control signal in response to a time derivative parameter of at least one down converted signal. The variation of the time constant is thus adjusted to a power variation rate of the received radio frequency signals.

[0015] The invention thereby provides a very fast, flexible and reliable AGC, which places moderate demands both on the analogue and the digital components. As a consequence, the solution may be realised at a comparatively low cost. The power consumption also becomes reasonable.

[0016] Moreover, the solution is scalable with respect to frequency range and power level, such that it may be applied to many technologies in addition to the packet data protocols mentioned. Hence, the invention is also applicable to known TDMA- and CDMA-standards for public mobile data communication, such as GSM, EDGE, GPRS, IS-95B, IS-136, cdma2000, W-CDMA and IMT-2000. (TDMA=Time Division Multiple Access, CDMA=Code Division Multiple Access, GSM=Global System for Mobile Communication, EDGE=enhanced data rate for GSM Evolution, GPRS=General Packet Radio Service in GSM, IS-95B: a packet mode version of the direct sequence CDMA-standard IS-95 used in North America, IS-136: a TDMA cellular system standard predominantly used in North America, cdma2000: a proposed standard in the USA for the next generation of public mobile communication, WCDMA=Wideband CDMA, IMT-2000: harmonisation initiative in International Mobile Telecommunications in 2000 between USA, Europe and Asia under the Radiocommunication Standardization Sector of the International Telecommunication Union (ITU-R)).

BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The present invention is now to be explained more closely by means of preferred embodiments, which are disclosed as examples, and with reference to the attached drawings.

[0018]FIG. 1 shows a block diagram over an arrangement according to an embodiment of the invention,

[0019]FIG. 2 illustrates a first aspect of the automatic gain control algorithm according to the invention by means of a power diagram,

[0020]FIG. 3 shows a diagram over a combined signal on which an automatic gain control is based according to an embodiment of the invention,

[0021]FIG. 4 shows a diagram over a time derivative parameter on which the automatic gain control may also be based according to an embodiment of the invention, and

[0022]FIG. 5 illustrates, by means of a flow diagram, an embodiment of the method according to the invention.

DESCRIPTION OF PREFERRED EMBODIMENTS OF THE INVENTION

[0023]FIG. 1 shows a block diagram over a receiver arrangement, which comprises a gain control loop according to an embodiment of the invention. The arrangement includes at least one radio frequency amplifier 102 for receiving radio frequency signals RF and producing corresponding amplified signals RF_(P). A down converter 103 generates down converted signals I and Q from the amplified radio frequency signals RF_(P). According to a preferred embodiment of the invention, the down converter 103 produces two quadrature signal components I and Q respectively by multiplying the amplified signal RF_(P) with a reference frequency LO from a local oscillator 121 respective with a phase shifted version of the reference frequency LO.

[0024] The quadrature signal components I and Q are passed to a set of amplifiers 104; 105, whose gain is controllable in response to an automatic gain control signal c and which generate corresponding amplified signal components I_(P) and Q_(P). According to a preferred embodiment of the invention the amplified signal components I_(P) and Q_(P) are also filtered and further amplified in subsequent low pass filters 106; 107 and amplifiers 108; 109 respectively. As a result, filtered and amplified signals I_(P-LP); Q_(P-LP) are created, which represent information contained in the received radio frequency signals RF. The signals I_(P-LP); Q_(P-LP) are received by respective A/D-converters 110; 111 where they are converted into a digital format I_(D); Q_(D) for further processing in a digital signal processor 112.

[0025] Nevertheless, the filtered and amplified signals I_(P-LP); Q_(P-LP) are also included in the gain control loop and thus fed back to indirectly control the gain of the amplifiers 104; 105. A first signal level detector 113 receives a first signal component Q_(P-LP) and produces in response thereto a first signal level [Q] representing the level or envelop of the first signal component Q_(P-LP), i.e. a first order approximation. Naturally, any higher order of approximation of the signal [Q] may likewise be made, such as a second order power estimation. Correspondingly, a second signal level detector 114 receives a second signal component I_(P-LP) and produces a second signal level [I] representing the level or envelop of the second signal component I_(P-LP).

[0026] A combiner 115 receives both the first and the second signal level [Q]; [I] and generates a combined signal V_(Σ), which represents the sum of the signal levels [Q] and [I]. The combined signal V_(Σ) is passed on to a gain control signal generator 116 that produces an automatic gain control signal c on basis of i.a. the combined signal V_(Σ).

[0027] The gain control signal generator 116 may include an integrator, which influences a time constant τ of the automatic gain control signal c in response to time properties of the combined signal V_(Σ), such that a quickly varying combined signal V_(Σ) results in a comparatively short time constant τ, and vice versa, a slowly varying combined signal V_(Σ) results in a comparatively long time constant τ. During search for a radio frequency signal RF to receive or at other instances when a message is expected, the gain control signal generator 116 allocates a comparatively low value to the time constant τ (i.e. a short time constant τ ). Otherwise, the gain control signal generator 116 sets a time constant τ value that is adapted to an actual power variation rate of the received radio frequency signals RF. More generally, the gain control signal generator 116 is adapted for varying the time constant τ in response to a time derivative parameter of the at least one down converted signal, i.e. I_(P-LP) or Q_(P-LP), which describes a power variation rate of the received radio frequency signals RF. Naturally, this does not preclude that the time constant may be varied on basis of arbitrary additional parameters, which for instance, depend on the protocol and frame structure according to which the particular receiver operates.

[0028] On basis of a suitable input level of the first and second signal components I_(P-LP) and Q_(P-LP) to the dynamic range of the A/D-converters 110 and 111, the digital signal processor 112 produces a desired value V_(des) of the combined signal V_(Σ). This value V_(des) is also fed to the gain control signal generator 116 to influence the automatic gain control signal c.

[0029] The automatic gain control signal c is fed in parallel to both the amplifiers 104 and 105 where it controls the gain, i.e. the amplification factor. The automatic gain control signal c is repeatedly updated to a value that is expected to make the amplifiers 104 and 105 respective 108 and 109 deliver the down converted signals at levels [I]; [Q] sufficiently close to a desired signal level. In practice, this also means that the automatic gain control signal c influences the amplifiers 104, 105,108 and 109 to deliver the down converted signals at levels [I]; [Q] less than a predetermined limit level. Preferably, the predetermined limit level is also optimised with respect to the dynamic range of the A/D-converters 110 and 111.

[0030] A derivation unit 117 also receives the combined signal V_(Σ). This unit produces a time derivative parameter {dot over (V)}_(Σ). by estimating a time derivative of the combined signal V_(Σ), for instance by high pass filtering the combined signal V_(Σ). The time derivative parameter {dot over (V)}_(Σ) is received in a ramp detector 118, for instance a comparator, together with a threshold value {dot over (V)}_(T) from the digital signal processor 112. If the time derivative parameter {dot over (V)}_(Σ) exceeds the threshold value {dot over (V)}_(T), the comparator 118 generates a pulse signal R. The digital signal processor 112 receives the pulse signal R and interprets the presence of the pulse signal R as an indication of a message start in the received radio frequency signals RF. The pulse signal R is activated i.a. when the RF power level rises sufficiently quickly from a relatively low, or even zero/noise floor level, to a relatively high level. By default, the time constant τ here has a comparatively low value and receiver is therefore well prepared for receiving the incoming message.

[0031] In an alternative embodiment of the invention, one or both of the derivation unit 117 and the ramp detector 118 are realised by functions within the digital signal processor 112.

[0032] In either case, after receiving the pulse signal R, the digital signal processor 112 computes a relevant starting value for the time constant τ (i.e. a short value) and delivers a corresponding digital value τ_(set-D) on an output. This value τ_(set-D) is forwarded to a conversion unit 119 being adapted to the digital signal format used. The conversion unit 119 creates a corresponding analogue parameter τ_(set). Hence, the unit 119 may be a conventional D/A-converter, a low pass filter or a pulse generator depending on the resolution requirements and the format of the digital signal τ_(set-D). If necessary, a following time constant generator 120 produces an actual time constant τ on basis of the analogue parameter τ_(set), for instance, by means of a table look-up in a bank of stored time constant values τ.

[0033] During reception of a message (e.g. a data packet) the signal level of the received radio frequency signals RF should only vary to small extent. The automatic gain control signal c should namely have calibrated the gain of the amplifiers 104 and 105 to this signal level, such that the time derivative parameter {dot over (V)}_(τ) is approximately zero, or at least below the threshold value {dot over (V)}_(T). Consequently, the pulse signal R should now be inactive. If, nevertheless, the digital signal processor 112 registers a pulse signal R during reception of a message, this is interpreted as an indication of an erroneous setting of the controllable gain in the amplifiers 104 and 105. Of course, this can in turn be a consequence of an external fact, such as a radical change in the radio environment. In any case, the affected message will normally be damaged or lost and will thus probably have to be re-transmitted.

[0034] This could imply that the receiver enters a search mode, in which a relevant portion of the radio frequency spectrum is scanned for possible radio frequency signals RF to receive. Alternatively, the receiver resets one or more of its parameters and attempts to re-establish the message reception. In any case, the digital signal processor 112 allocates a comparatively short time constant τ_(set-D).

[0035] The pulse signal R in turn constitutes a basis for the time constant value τ_(set-D). The pulse signal R history, and indirectly the threshold value {dot over (V)}_(T) history, namely indicate that a particular stage in a typical message reception cycle has been reached. A short time constant value τ_(set-D) should always be applied in the beginning of the reception of a message. A large rise in the pulse signal R accompanied by a rise in the power level of the received radio frequency signals RF constitute indications of a message start and thus a short time constant value τ_(set-D) is likely to be successful.

[0036] A relatively long time constant value τ_(set-D) should be applied whenever the radio frequency signals RF are received at a relatively high and constant power level and if simultaneously the absence of a pulse signal R indicates that a message is currently being received. A long time constant value τ_(set-D) here means that the time constant value τ_(set-D) may also be infinitely long. The received radio frequency power level can be determined via the digital signals I_(D); Q_(D) and the value of the automatic gain control signal c. The value of the automatic gain control signal c can in turn be detected by the digital signal processor 112 via an A/D-converter (not shown).

[0037] A relatively short time constant value τ_(set-D) should be applied whenever no radio frequency signals RF are being received or in other situations when a new message is expected, for instance, in case of a message being lost or damaged. Consequently, based on variations in the power level of the received radio frequency signals RF and the pulse signal R, the digital signal processor 112 can allocate a adequate time constant value τ_(set-D) for the automatic gain control signal c. After having received a complete message, the digital signal processor 112 typically allocates a short time constant value τ_(set-D) and thus prepares the receiver for reception of a new message.

[0038]FIG. 2 shows a power diagram that illustrates a first aspect of the automatic gain control algorithm. according to the invention. The horizontal axis represents time t and the vertical axis shows a transmitted / received signal power level in decibel. Naturally, the power values differ substantially depending on whether they reflect transmitted or received signal power. However, the interrelationship between the relevant levels and thresholds are substantially the same in both cases. A first power level P_(SS) denotes the average signal level during transmission/reception of the payload information in the message. The transmitter should reach the level PSS at latest at a rise time t_(r) after initiating the transmission and the receiver should reach its level P_(SS) at a somewhat later time t_(t) after that the transmission has been initiated. However, it is preferable if also the receiver has reached its level P_(SS) already at the end of the rise time t_(r). The period between the rise time t_(r) and the time t_(t) is namely utilised for calibrating certain units in the receiver, such as an equaliser. Thus, a so-called training sequence is typically sent between t_(r) and t_(t). The 802.11a-protocol specifies a relatively short rise time t_(r) of 2 μs from initiating of the transmission. Since the receiver station cannot know when a transmission is in fact started, it uses a ramp detector, which here is illustrated by the threshold value {dot over (V)}_(T) for the time derivative {dot over (V)}_(Σ) of the combined signal V_(Σ). Hence, the receiver station deduces that a new message is to be received whenever the time derivative {dot over (V)}_(Σ) rises above the threshold value {dot over (V)}_(T). The receiver station construes that it has detected a so-called signal power ramp, which starts at point in time t_(R), when the threshold value {dot over (V)}_(T) is exceeded. Provided that the rise time t_(r) is a system parameter known by the receiver station (e.g. t_(r)=2 μs), the receiver station can expect the signal power ramp to end within a time period equal to the rise time t_(r) after t_(R).

[0039] When the rise time t_(r) has come to an end, the power P of the radio frequency signal preferably levels out at the first power level P_(SS). During the period from t_(r) to t_(t), when for instance training sequence is sent, the signal power level P typically shows a variation of ±ΔP_(t)=3 dB around the first power level P_(SS) (i.e. peak-to-average (PAP)=3 dB). According to 802.11a t_(t) is 8 μs and 802.11b t_(t) stipulates a t_(t) of 20-48 μs.

[0040] As of the time t_(t) and onwards the radio frequency signals should have an average power P level close to the first power level P_(SS) until the transmission is ended. The variation from this level is normally ±ΔP_(D)=10 dB (i.e. PAP=10 dB).

[0041] Even though the expected variation in power level P is lower between t_(r) and t_(t) than after t_(t), it is generally preferable if the time constant τ of the automatic gain control signal c is shorter between t_(r) and t_(t) than after t_(t). It is namely not desirable if the receiver “compensates” for the variations in the signal power after t_(t), since such power variations may represent payload information in the message. Regardless of the time constant, the automatic gain control signal c should always have a value such that a down converted signal level is maintained below a limit level. This level is illustrated by means of a corresponding power value P_(lim) in the diagram.

[0042]FIG. 3 shows a diagram over an exemplary combined signal V_(Σ) on which an automatic gain control c may be based according to an embodiment of the invention. The horizontal axis represents time t and the vertical axis shows the combined signal level V_(Σ), for instance in volts. The FIG. 1 shows an embodiment of the invention where the combined signal V_(Σ) contains a sum of the signal levels [Q]; [I] of a first down converted signal component Q and a second down converted signal component I. If the down converted signal is a sine wave with a constant amplitude |s| the combined signal level V_(Σ) will then vary between {square root}{square root over (2)}|s | and |s | also when the received signal level is constant. Consequently, a certain degree of variation in the combined signal level V_(Σ) must be tolerated without activation of the ramp detector 118. Of course, an alternative level detection and/or signal combination may be performed, which results in a smaller “undesired” variation in the combined signal level V_(Σ). It is, nevertheless, still preferable that a moderate variation (i.e. non-zero time derivative) in the combined signal level V_(Σ) be accepted.

[0043]FIG. 4 shows a diagram over an exemplary time derivative parameter {dot over (V)}_(Σ) according to an embodiment of the invention. Provided that the combined signal V_(Σ) is produced according to the design in FIG. 1 and that the down converted signal is a sine wave with a constant amplitude, the time derivative parameter {dot over (V)}_(Σ) will also vary to some extent, for instance between a highest value Δ and a lowest value −Δ. In order not to generate a pulse signal R (or alter the time constant τ) in response to these variations, the threshold value {dot over (V)}_(T) must lie sufficiently above Δ to also exclude variations due to the down converted signal being a non-sine wave signal or a signal composed of more than one sine wave. A pulse signal R should only be generated when the RF power level rises relatively quickly. However, as soon as the derivative parameter {dot over (V)}_(Σ) exceeds the threshold value {dot over (V)}_(T), here at t=t_(R), the ramp detector 118 produces a pulse signal R.

[0044] In order to sum up, a method for controlling gain of an amplifier for received radio signals in a radio receiver according to an embodiment of the invention will now be described with reference to a flow diagram in the FIG. 5. It should be borne in mind that even though the steps in the flow diagram are executed sequentially, this is merely true with respect to an infinitesimal fraction of a received signal. While, for instance a certain segment of the signal is being down converted, a somewhat later segment of the same signal is being received, and so on.

[0045] Radio frequency signals are received and amplified in a first step 501. A following step 502 down converts the signals into quadrature components, which are then amplified. Subsequently, a step 503 computes a time derivative parameter on basis of the quadrature components. A following step 504 determines an automatic gain control signal having a time constant value, which is based on the time derivative parameter computed in the step 503. Finally, the amplification of the quadrature components is controlled in a step 506, on basis of the automatic gain control signal, such that down converted signal components to be digitised are maintained at signal level less than a predetermined limit level.

[0046] All of the process steps, as well as any sub-sequence of steps, described with reference to the FIG. 5 above may be controlled by means of a computer program, such as a digital signal processor algorithm, being directly loadable into the internal memory of a general computer, a digital signal processor, a baseband processor or an ASIC (Application Specific Integrated Circuit), which includes appropriate software for controlling the necessary steps when the program is run on a computer/digital signal processor. The computer program can likewise be recorded onto arbitrary kind of computer readable medium.

[0047] The term “comprises/comprising” when used in this specification is taken to specify the presence of stated features, integers, steps or components. However, the term does not preclude the presence or addition of one or more additional features, integers, steps or components or groups thereof.

[0048] The invention is not restricted to the described embodiments in the figures, but may be varied freely within the scope of the claims. 

1. A method for controlling gain of an amplifier for received radio signals in a radio receiver, the radio receiver having a controllable gain responsive to an automatic gain control signal (c), the method comprising: amplifying received radio frequency signals (RF), level detecting at least one down converted signal (I_(p-LP); Q_(P-LP)) resulting from amplified radio frequency signals (RF_(P)), and generating the automatic gain control signal (c) in response to at least one down converted signal level ([I]; [Q]) such that the controllable gain maintains the at least one down converted signal level ([I]; [Q]) at less than a predetermined limit level, characterised by varying a time constant (T) of the automatic gain control signal (c) in response to a time derivative parameter (V_(Σ)) of the at least one down converted signal (I_(p-LP); Q_(p-LP)) such that the automatic gain control signal (c) is adapted to a power variation rate of the received radio frequency signals (RF). 